package com.huawei.appgallery.horizontalcard.api.card;

import android.content.Context;
import android.view.View;
import android.view.View.MeasureSpec;
import android.widget.TextView;
import android.widget.TextView.BufferType;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.card.base.normal.bean.NormalCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hwid.core.constants.HwAccountConstants;
import java.util.List;
import o.cgz;
import o.clp;
import o.epr;

public class BaseHorizontalItemCard extends BaseDistCard {
    public BaseHorizontalItemCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
    }

    public void ˋ(List<CardBean> list) {
    }

    public void ˋ(clp<? extends NormalCardBean> o_clp__extends_com_huawei_appgallery_foundation_card_base_normal_bean_NormalCardBean) {
    }

    public void ᐝ(int i) {
    }

    public int ˋ() {
        if (epr.ˎ().ॱॱ()) {
            return ˎ();
        }
        return ˊ();
    }

    protected int ˊ() {
        return 0;
    }

    protected int ˎ() {
        return 0;
    }

    public int ᐝ() {
        return 0;
    }

    protected double ˏ(float f) {
        if (ˉ() == null) {
            return 0.0d;
        }
        TextView textView = new TextView(ˉ().getContext());
        textView.setText(HwAccountConstants.BLANK, BufferType.SPANNABLE);
        textView.setTextSize(0, f);
        textView.measure(100, MeasureSpec.makeMeasureSpec(0, 0));
        return (double) textView.getMeasuredHeight();
    }
}
